package org.scratchcrew.web.cometd.handlers;

public interface BoardChannelSupport {

	/**
	 * Parse channel and extract board id from it
	 * 
	 * @param channel
	 *            to parse
	 * @return id of board
	 * @throws IllegalArgumentException
	 *             only if isBoardChannel() returns false based on old
	 *             {@link BoardHandler#handle(org.cometd.Client, String, Object, String)}
	 */
	public long getBoardIdByChannel(final String channel)
			throws IllegalArgumentException;

	public String getChannelByBoardId(final Long boardId);

	public boolean isBoardChannel(final String channel);
}
